#include "DEV_Config.h"
#include "my_mcu.h"

void DEV_SPI_WriteByte(UBYTE value)
{
  MyMcu_SPI1_RdWrByte(value);
}

int DEV_Module_Init(void)
{
  DEV_Digital_Write(EPD_DC_PIN,  0);
  DEV_Digital_Write(EPD_CS_PIN,  0);
  DEV_Digital_Write(EPD_RST_PIN, 1);
  return 0;
}

void DEV_Module_Exit(void)
{
  DEV_Digital_Write(EPD_DC_PIN,  0);
  DEV_Digital_Write(EPD_CS_PIN,  0);

  //close 5V
  DEV_Digital_Write(EPD_RST_PIN, 0);
}

